package ai.people.platform.archives.service.impl;

import ai.people.netmon.framework.domain.archives.entity.GangGroupOrgPersonListBO;
import ai.people.netmon.framework.domain.archives.entity.GangGroupRelation;
import ai.people.netmon.framework.domain.archives.entity.GangGroupRelationBO;
import ai.people.netmon.framework.domain.archives.request.GangGroupOrgPersonListRequest;
import ai.people.platform.archives.mapper.GangGroupRelationMapper;
import ai.people.platform.archives.service.GangGroupRelationService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhenglin
 * @since 2022-06-21
 */
@Service
public class GangGroupRelationServiceImpl extends ServiceImpl<GangGroupRelationMapper, GangGroupRelation> implements GangGroupRelationService {

    @Autowired
    GangGroupRelationMapper mapper;
    @Override
    public List<GangGroupRelationBO> listArchives(Long id) {
        return mapper.listArchives(id);
    }

    @Override
    public Page<GangGroupOrgPersonListBO> pagePerson(Page<GangGroupOrgPersonListBO> page, GangGroupOrgPersonListRequest request) {
        return mapper.pagePerson(page, request);
    }

    @Override
    public List<GangGroupOrgPersonListBO> listPersonFromGraph(Set<String> archivesIds, Long id) {
        return mapper.pagePersonFromGraph(archivesIds,id);
    }


}
